package com.wang.cloud.manage.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wang.cloud.common.mysql.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 系统用户和角色关联表
* </p>
*
* @author wy
* @since 2024-07-16
*/
@Getter
@Setter
@TableName("sys_user_role_relation")
@Schema(name = "UserRoleRelationEntity", description = "系统用户和角色关联表")
public class UserRoleRelationEntity {

    @Schema(description = "数据ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "角色ID")
    @TableField("role_id")
    private Long roleId;
}
